package com.wtwd.wtwddevice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.wtwddevice.model.entity.DeviceBloodOxygen;
import com.wtwd.wtwddevice.model.entity.DeviceBloodOxygenTotal;
import com.wtwd.wtwddevice.model.entity.DeviceHeartRate;
import com.wtwd.wtwddevice.model.entity.DeviceHeartRateTotal;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2024-05-29
 */
public interface IDeviceBloodOxygenService extends IService<DeviceBloodOxygen> {

    /**
     * 插入血氧数据 并 统计血氧数据
     *
     * @param deviceBloodOxygen
     * @return
     */
    boolean insert(DeviceBloodOxygen deviceBloodOxygen);


    /**
     * 获取同步缓存之后的累加值
     * 第一版本测试直接查询数据库
     * <p>
     * deviceBloodOxygen
     *
     * @return
     */
    DeviceBloodOxygenTotal getSynchronizationCache(DeviceBloodOxygen deviceBloodOxygen);

}
